-- Toggle between CTRL and COMMAND for the command key on my second keyboardtell application "System Preferences"	activate	set current pane to pane id "com.apple.preference.keyboard"	delay 0.5end telltell application "System Events"	tell process "System Preferences"		click button "Modifier Keys…" of tab group 1 of window "Keyboard"		delay 0.1		tell sheet 1 of window "Keyboard"			click pop up button "Select keyboard:"			click menu item "iMate, USB To ADB Adaptor" of menu 1 of pop up button "Select keyboard:"			delay 0.1			click pop up button "Command (⌘) Key:"			if value of pop up button "Command (⌘) Key:" = "⌘ Command" then				click menu item 2 of menu 1 of pop up button "Command (⌘) Key:"			else				click menu item "⌘ Command" of menu 1 of pop up button "Command (⌘) Key:"			end if			delay 0.1			click button "OK"		end tell	end tellend tell